/**
 * API响应相关类型定义
 */

/**
 * 基础响应结构
 */
export interface ResponseBase<T = any> {
  code: number;
  message: string;
  data: T;
}

/**
 * 分页请求参数
 */
export interface PaginationParams {
  current: number;
  pageSize: number;
  total?: number;
  [key: string]: any;
}

/**
 * 分页响应结构
 */
export interface PaginationResponse<T = any> {
  list: T[];
  pagination: {
    current: number;
    pageSize: number;
    total: number;
  };
}

/**
 * 通用列表查询参数
 */
export interface ListParams {
  keyword?: string;
  sorter?: string;
  status?: number | string;
  createTimeRange?: [string, string];
  [key: string]: any;
}

/**
 * 通用排序参数
 */
export interface SorterParams {
  field: string;
  order: 'ascend' | 'descend' | undefined;
} 